/*
 * JVM_Exception.h
 *
 *  Created on: Apr 30, 2011
 *      Author: Dominik Ollesz
 */

#include <stdint.h>

#ifndef JVM_EXCEPTION_HANDLER_H
#define JVM_EXCEPTION_HANDLER_H

/*
 * Exception handler.
 * @see JVM_Method.h (exception_table)
 */
typedef struct {

  uint16_t start_pc;   // index into JVM_Method.code[]
  uint16_t end_pc;     // index into JVM_Method.code[]
  uint16_t handler_pc; // index into JVM_Method.code[]
  uint16_t catch_type; // index into constant pool of type JVM_CP_Class

} JVM_Exception_Handler_t;

#endif /* JVM_EXCEPTION_HANDLER_H */
